package org.scau.studentevaluation.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;
import org.scau.studentevaluation.entity.dos.RulesDO;
import org.scau.studentevaluation.entity.query.RuleQuery;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author x1aolone
 * @since 2020-08-24
 */
public interface RulesMapper extends BaseMapper<RulesDO> {
   @Select("select rule from rules where subject = #{subject} and rule_id = #{reluIndex} and college = #{college} and year = #{reluYear} limit 1")
   String detailRule(RuleQuery query);
}
